package com.spark.lola.entity.warehouse;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.mybatis.entity.BaseModel;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 采集日志
 * </p>
 *
 * @author dengyejun
 * @since 2020-06-10
 */
@TableName("warehouse_gather_log")
@ApiModel(value="GatherLog对象", description="采集日志")
public class GatherLog extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;
    public GatherLog(){}
    @ApiModelProperty(value = "采集类型")
    private String gatherType;

    @ApiModelProperty(value = "最后采集时间")
    private Date lastTime;

    @ApiModelProperty(value = "最后记录ID")
    private String lastId;

    @ApiModelProperty(value = "记录数")
    private Integer count;

    @ApiModelProperty(value = "采集地址")
    private String gatherUrl;

    @ApiModelProperty(value = "请求参数")
    private String gatherParams;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建日期")
    private Date createDate;


    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getLastId() {
        return lastId;
    }

    public void setLastId(String lastId) {
        this.lastId = lastId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getGatherType() {
        return gatherType;
    }

    public void setGatherType(String gatherType) {
        this.gatherType = gatherType;
    }
    


    
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    
    public String getGatherUrl() {
        return gatherUrl;
    }

    public void setGatherUrl(String gatherUrl) {
        this.gatherUrl = gatherUrl;
    }
    
    public String getGatherParams() {
        return gatherParams;
    }

    public void setGatherParams(String gatherParams) {
        this.gatherParams = gatherParams;
    }

    
    @Override
    public String toString() {
        return "GatherLog{" +
            "gatherType=" + gatherType +
            ", lastTime=" + lastTime +
            ", lastId=" + lastId +
            ", count=" + count +
            ", gatherUrl=" + gatherUrl +
            ", gatherParams=" + gatherParams +
            ", createTime=" + createTime +
            ", createDate=" + createDate +
            "}";
    }
}
